"""
Projectname: Lesson 21. Palindrome
Author: Jakhongir Kakharov
Date: 11.07.2022
"""

# words = ['Aziza', 'Tut', 'мадам', 'топот', 'test', 'madam', 'word']

# palindromes = []

# for word in words:
#    if word == word[::-1]:
#        palindromes.append(word)

# palindromes = [word for word in words if word == word[::-1]]

# print(palindromes)

# my_str = ['Око за око', 'А роза упала на лапу Азора', 'Около Миши молоко']
# palindromes = []
# for word in my_str:
#     W = word.replace(' ', '').lower()
#     if W == W[::-1]:
#         palindromes.append(word)

# print(palindromes)

l = list(range(1, 10))
l2 = list('hello')

print(l, l2)

S = '-'.join(map(str, l))
S2 = ','.join(l2)

print(S)
print(S2)
